//
//  ObjectRes.m
//  CandyJump
//
//  Created by Bon Lam on 01/03/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "ObjectRes.h"


//=====================================================================================================================
@implementation ObjectRes

@synthesize objectListDictionary;

static ObjectRes *sharedRes = nil;

#pragma mark -
#pragma mark Singleton Object Functions
//---------------------------------------------------------------------------------------------------------------------
- (id)init  {
	self = [super init];
	if (self == nil)  {return self;}
	
	return self;
}

//---------------------------------------------------------------------------------------------------------------------
- (void)dealloc  {
	
	[super dealloc];
}

//---------------------------------------------------------------------------------------------------------------------
+ (id)allocWithZone:(NSZone *)zone  {
    return [[self sharedRes] retain];
}

//---------------------------------------------------------------------------------------------------------------------
- (id)copyWithZone:(NSZone *)zone  {
    return self;
}

//---------------------------------------------------------------------------------------------------------------------
- (id)retain {
    return self;
}

//---------------------------------------------------------------------------------------------------------------------
- (NSUInteger)retainCount  {
    return NSUIntegerMax;  //denotes an object that cannot be released
}

//---------------------------------------------------------------------------------------------------------------------
- (void)release  {
    //do nothing
}

//---------------------------------------------------------------------------------------------------------------------
- (id)autorelease  {
    return self;
}

#pragma mark Custom Functions
//---------------------------------------------------------------------------------------------------------------------
+ (ObjectRes *)sharedRes  {
    if (sharedRes == nil) {
        sharedRes = [[super allocWithZone:NULL] init];
    }
    return sharedRes;
}

//---------------------------------------------------------------------------------------------------------------------
- (void)loadObjects {
	
}


@end
